package com.ecoolex.chinadutyfree.retailer.core.mapper;

import com.ecoolex.chinadutyfree.retailer.entity.DirectMailGoodsOrderAfterSales;
import com.ecoolex.chinadutyfree.retailer.entity.DirectMailGoodsOrderAfterSalesExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface DirectMailGoodsOrderAfterSalesMapper {
    long countByExample(DirectMailGoodsOrderAfterSalesExample example);

    int deleteByExample(DirectMailGoodsOrderAfterSalesExample example);

    int deleteByPrimaryKey(Integer afterSalesId);

    int insert(DirectMailGoodsOrderAfterSales record);

    int insertSelective(@Param("record") DirectMailGoodsOrderAfterSales record, @Param("selective") DirectMailGoodsOrderAfterSales.Column ... selective);

    DirectMailGoodsOrderAfterSales selectOneByExample(DirectMailGoodsOrderAfterSalesExample example);

    List<DirectMailGoodsOrderAfterSales> selectByExample(DirectMailGoodsOrderAfterSalesExample example);

    DirectMailGoodsOrderAfterSales selectByPrimaryKey(Integer afterSalesId);

    DirectMailGoodsOrderAfterSales selectByPrimaryKeyWithLogicalDelete(@Param("afterSalesId") Integer afterSalesId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") DirectMailGoodsOrderAfterSales record, @Param("example") DirectMailGoodsOrderAfterSalesExample example, @Param("selective") DirectMailGoodsOrderAfterSales.Column ... selective);

    int updateByExample(@Param("record") DirectMailGoodsOrderAfterSales record, @Param("example") DirectMailGoodsOrderAfterSalesExample example);

    int updateByPrimaryKeySelective(@Param("record") DirectMailGoodsOrderAfterSales record, @Param("selective") DirectMailGoodsOrderAfterSales.Column ... selective);

    int updateByPrimaryKey(DirectMailGoodsOrderAfterSales record);

    int batchInsert(@Param("list") List<DirectMailGoodsOrderAfterSales> list);

    int batchInsertSelective(@Param("list") List<DirectMailGoodsOrderAfterSales> list, @Param("selective") DirectMailGoodsOrderAfterSales.Column ... selective);

    int logicalDeleteByExample(@Param("example") DirectMailGoodsOrderAfterSalesExample example);

    int logicalDeleteByPrimaryKey(Integer afterSalesId);
}